package cn.smkt.controller;

import cn.smkt.common.vo.R;
import cn.smkt.domain.Store;
import cn.smkt.service.IStoreService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/app/store")
public class StoreController {
    @Autowired
    private IStoreService storeService;

    @GetMapping
    public R list(Store store) {
        return R.ok(storeService.selectStoreList(store));
    }
}
